from django.conf.urls import url
from . import views
from rest_framework_jwt.views import obtain_jwt_token


urlpatterns = [
    #/users/usernames/(?P<username>\w{5,20})/count/
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.RegisterUserNameView.as_view(),name='usernamecount'),
    url(r'^$', views.RegisterCreateUserView.as_view()),
    # 定义登录的url
    url(r'^auths/$', obtain_jwt_token),
    url(r'^infos/$', views.UserDetailView.as_view()),
    url(r'^emails/$', views.EmailUpdateView.as_view()),
    url(r'^emails/verification/$', views.VerifyEmailView.as_view())

]